//
// Created by wze-zero on 2024/7/24 024.
//
#include <iostream>
#include <map>

using namespace std;

int main() {
    char str[100];
    cin.getline(str, sizeof(str));
    map<char, int> m;
    for (int i = 0; str[i] != '\0'; ++i) {
        if ((str[i]>='a'&&str[i]<='z')||(str[i]>='A'&&str[i]<='Z')){
            if (m.find(str[i]) == m.end()) {
                m.insert(make_pair(str[i], 1));
            } else {
                m.find(str[i])->second++;
            }
        }
    }
    for (map<char, int>::iterator i = m.begin(); i != m.end(); ++i) {
        cout << i->first << ":" << i->second << endl;
    }
    return 0;
}